package globalValues

import (
	tNet "github.com/toolkits/net"
	"os"
	"quickConnect/models/utils"
)

var Key string
var LocalIp []string
var Enable bool
var HomeDir string

func init() {
	LocalIp, _ = tNet.IntranetIP()
	Key = utils.GetRandomString(20) //设置随机key，不带key的访问全部拒绝
	Enable = false
	HomeDir, _ = os.UserHomeDir()
	//if err!=nil{
	//	log.Println(err)
	//	os.Exit(1)
	//}
}
